<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><?php echo ($title); ?></title>
  <meta name="description" content="这是一个 help 页面">
  <meta name="keywords" content="help">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" /> 
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" type="text/css" href="/zxtms/Public/assets/css/amazeui.min.css" />
  <link rel="stylesheet" type="text/css" href="/zxtms/Public/assets/css/admin.css" />
  <script type="text/javascript" src="/zxtms/Public/assets/js/jquery.min.js"></script>
   <script type="text/javascript" src="/zxtms/Public/assets/js/amazeui.min.js"></script>
</head>
<body>
<style>
.am-active{
	background:#0E90D2 !important;
	color:#ffffff !important;
}
</style>
<header class="am-topbar am-topbar-inverse admin-header">
  <div class="am-topbar-brand">
   <!-- 河南志信 --> <strong>小草科技有限公司——</strong> <small>出差管理系统</small>
  </div>
  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">   
    <?php if(empty($_SESSION['name'])): ?><li><a href="<?php echo U('Login/login');?>"><span class="am-icon-user"></span> 登录</a></li>
    <?php else: ?>
        <li><a href=""><span class="am-icon-user"></span>  欢迎您：<?php echo (session('name')); ?></a></li> 
          <li><a href="<?php echo U('Login/logout');?>"><span class="am-icon-sign-out"></span>注销</a></li><?php endif; ?>                                    
    </ul>
  </div>
</header>

<div class="am-cf admin-main">
  <!-- sidebar start -->
  <div class="admin-sidebar am-offcanvas am-dh">
    <div class="am-offcanvas-bar admin-offcanvas-bar">    
      <ul class="am-list admin-sidebar-list" >
       <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Index'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Index/index');?>"><span class="am-icon-home"></span> 首页</a></li>
        <li class="admin-parent">
          <a class="am-cf" data-am-collapse="{target: '#collapse-nav2'}"> 公司管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
          <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav2">
           <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Station'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Station/View');?>" class="am-cf">公司岗位</a></li>
           <?php if(($_SESSION['uid']) == "1"): ?><li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Staff'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Staff/View');?>" class="am-cf">员工管理</a></li><?php endif; ?>
            <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Status'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Status/View');?>" class="am-cf">员工状态</a></li> 
            <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Task'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Task/View');?>" class="am-cf">出勤管理</a></li>                   
            <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Check'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Check/View');?>"> 出差统计</a></li>
            <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Leave'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Leave/View');?>"> 请假管理</a></li>
            <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Late'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Late/View');?>"> 迟到管理</a></li>               
          </ul>
        </li>   
        <li class="admin-parent">
          <a class="am-cf" data-am-collapse="{target: '#collapse-nav'}"> 权限管理 <span class="am-icon-angle-right am-fr am-margin-right"></span></a>
          <ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav">
            <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/User'): ?>class="am-active"<?php endif; ?>  href="<?php echo U('Admin/User/View');?>" class="am-cf"> 系统管理人员</a></li>
            <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Group'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Group/View');?>"> 角色管理</a></li>           
            <li><a <?php if(MODULE_NAME.'/'.CONTROLLER_NAME == 'Admin/Rule'): ?>class="am-active"<?php endif; ?> href="<?php echo U('Admin/Rule/View');?>"> 权限列表</a></li>                  
          </ul>
        </li>             
      </ul>
    </div>
  </div>
  <!-- sidebar end -->

  <!-- content start -->
  <div class="admin-content"> 
    <div class="admin-content-body">  
      <hr/>
     
<!-- <link rel="stylesheet" type="text/css" href="/zxtms/Public/assets/css/tp.css" />
<script type="text/javascript" src="/zxtms/Public/layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="/zxtms/Public/assets/css/amazeui.datetimepicker.css" />
 <script type="text/javascript" src="/zxtms/Public/assets/js/amazeui.datetimepicker.min.js"></script> 
 <script type="text/javascript" src="/zxtms/Public/assets/js/jquery.min.js"></script>
 
 <script type="text/javascript" src="/zxtms/Public/assets/js/app.js"></script> -->
<style>
.am-table{
	font-size:13px;
}
.am-time{
	width:60%;
	height:30px;
}
</style>

<table class="am-table am-table-compact am-table-centered am-scrollable-horizontal   am-table-bordered">  
    <thead>
        <tr>       
            <th>id</th>                       
            <th>姓名</th> 
            <th>出差时间</th> 
            <th>回来时间</th>
            <th>本月应出勤天数</th>
            <th>实际出勤天数</th>                          
            <th>出差天数</th> 
            <th>加班天数</th> 
            <th>请假天数</th>
            <th>迟到次数</th>       
            <th>状态</th>                             
          
        </tr>
    </thead>
    <tbody>
   
        <tr>
            <td colspan="12"><?php echo ($year); ?>/<?php echo ($month); ?>月</td>                     
        </tr>
     
      <?php if(is_array($namelist)): foreach($namelist as $key=>$vv): ?><tr>          
            <td><?php echo ($key+1); ?></td>          
            <td><?php echo ($vv["staff_name"]); ?></td>           
            <td>
              <?php if($vv["taskstarttime"] == '0000-00-00 00:00:00'): ?>本月无出差<?php else: ?> <?php echo ($vv["taskstarttime"]); endif; ?>           
            </td> 
            <td>
             <?php if($vv["taskstarttime"] == '0000-00-00 00:00:00'): ?>本月无出差<?php else: ?> 
              <?php if($vv["taskendtime"] == '0000-00-00 00:00:00'): ?>不确定<?php else: echo ($vv["taskendtime"]); endif; endif; ?>                 
            </td> 
             <td><?php echo ($t); ?></td>
             <td>
             
             <?php if($vv["taskstarttime"] == '0000-00-00 00:00:00'): echo ($t); else: ?> 
             <?php echo ($t+$vv["taskdate"]); endif; ?>
             </td>
            <td>
             <?php if($vv["taskstarttime"] == '0000-00-00 00:00:00'): ?>无<?php else: ?> 
             <?php if($vv["taskdate"] == '0'): ?>不确定<?php else: echo ($vv["taskdate"]); ?>天<?php endif; endif; ?>
            </td> 
            <td>
            <?php if($vv["taskstarttime"] == '0000-00-00 00:00:00'): ?>无<?php else: ?> 
            <?php if($vv["taskadd"] == '0'): ?>不确定<?php else: echo ($vv["taskadd"]); ?>天<?php endif; endif; ?>
            </td> 
            
             <td>
           <?php echo ($vv["taskleave"]); ?>天            
            </td>   
            
           <td>
           <?php echo ($vv["tasklate"]); ?>次            
           </td>  
                    
            <td>
            <?php if($vv["taskstarttime"] == '0000-00-00 00:00:00'): ?>在公司<?php else: ?> 
            <?php if($vv["taskstatus"] == '2'): ?>出差中<?php else: ?>出差完毕<?php endif; endif; ?>
            </td>                                      
           
        </tr><?php endforeach; endif; ?>
      
     
    </tbody>
</table>
		 
	
	    

 </div>
    <footer class="admin-content-footer">
      <hr>
      <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
    </footer>
  </div>
  <!-- content end -->




</div>



</body>
</html>